package com.yt.system.service.impl;

import com.yt.system.dao.GroupAccountMapper;
import com.yt.system.domain.GroupAccount;
import com.yt.system.service.GroupAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GroupAccountServiceImpl implements GroupAccountService {
    @Autowired
    GroupAccountMapper groupAccountMapper;
    @Override
    public int addGroupAccount(GroupAccount groupAccount) {
        return groupAccountMapper.addGroupAccount(groupAccount);
    }
    @Override
    public GroupAccount selectByGid(Integer gid) {
        return groupAccountMapper.selectByGid(gid);
    }
    @Override
    public List<GroupAccount> selectAllGroupAccountDesc() {
        return groupAccountMapper.selectAllGroupAccountDesc();
    }
    @Override
    public int updateByGidSelective(GroupAccount record) {
        return groupAccountMapper.updateByGidSelective(record);
    }
    @Override
    public int resetGroupScoreByGid(Integer gid) {
        return groupAccountMapper.resetGroupScoreByGid(gid);
    }
}
